import {createRouter, createWebHashHistory} from 'vue-router'

const routes = [

    {
        path: '/sys',
        name: 'sys',
        component: () => import('@/components/sys/System.vue'),
        children: [
            {
                path: '/sys/sysUser',
                name: 'user',
                component: () => import('@/components/sys/sysUser/UserView.vue')
            },
        ]
    },

    {
        path: '/',
        name: 'main',
        component: () => import('@/components/Main.vue')
    },
]


const router = createRouter({
    history: createWebHashHistory(),
    //history: createWebHashHistory(import.meta.env.BASE_URL),
    routes,
    scrollBehavior: () => ({left: 0, top: 0}),
});
export default router